const TOKEN_KEY = 'hmtt88'

// 储存到本地数据
export const saveToken = obj => {
  localStorage.setItem(TOKEN_KEY, JSON.stringify(obj))
}

// 获取本地数据
export const getToken = () => {
  return JSON.parse(localStorage.getItem(TOKEN_KEY))
}

// 删除本地数据
export const removeToken = () => {
  localStorage.removeItem(TOKEN_KEY)
}
